﻿<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Wctl_Usuario.ascx.vb" Inherits="WebAppTestBuilder.Wctl_Usuario" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register assembly="Anthem" namespace="Anthem" tagprefix="anthem" %>
 
<link href="../Css/style.css" rel="stylesheet" type="text/css" />
<script src="../Js/jquery.corners.js" type="text/javascript"></script>
<script src="../Js/jquery-1.5.2.min.js" type="text/javascript"></script>

   <script type="text/javascript">

       $(document).ready(function() {
           $('.rounded').corners();
       });
    </script>
  
                                    
<table style="width: 100%" onload =" $('.rounded').corners();">
    
    <tr>
        <td>
        
            <table style="width: 100%">
                <tr>
                    <td style="width: 103px">
                        &nbsp;</td>
                    <td style="color: #000066">
                        <b>MANTENCIÓN DE USUARIOS</b></td>
                </tr>
                <tr>
                    <td style="width: 103px">
                        &nbsp;</td>
                    <td style="color: #000066">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 103px">
                        &nbsp;</td>
                    <td>
                        <anthem:Label ID="Label1" runat="server" ForeColor="#000066">Busqueda de Usuarios</anthem:Label>
                    &nbsp;
                        <anthem:ImageButton ID="ImageButton1" runat="server" 
                            ImageUrl="~/images/expand_blue.jpg" EnabledDuringCallBack="False" 
                            ImageUrlDuringCallBack="~/images/cargando.gif" style="width: 13px" />
                    </td>
                </tr>
                <tr>
                    <td style="width: 103px">
                        &nbsp;</td>
                    <td>
                        <anthem:Panel ID="Panel1" runat="server" Visible="False" EnableCallBack="False" 
                            BorderStyle="Solid" BorderWidth="2px" Width="765px" 
                            CssClass="PanelIngresoDatos  rounded">
                            <br />
                            <table style="width: 100%">
                                <tr>
                                    <td>
                                        <anthem:Label ID="lbl_texto" runat="server" Text="Texto a buscar" 
                                            style="color: #000066"></anthem:Label>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txt_busqueda" runat="server" Width="436px"></asp:TextBox>
                                        <anthem:ImageButton ID="img_buscar" runat="server" Height="36px" 
                                            ImageUrl="~/images/buscar_carpeta.jpg" 
                                            ImageUrlDuringCallBack="~/images/cargando.gif" Width="37px" />
                                    </td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <anthem:DataGrid ID="Dg_Datos" runat="server" AutoGenerateColumns="False" 
                                            CellPadding="4" ForeColor="#333333" GridLines="None">
                                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                            <ItemStyle BackColor="#F7F6F3" Font-Bold="False" Font-Italic="False" 
                                                Font-Overline="False" Font-Size="9px" Font-Strikeout="False" 
                                                Font-Underline="False" ForeColor="#333333" />
                                            <Columns>
                                                <asp:ButtonColumn CommandName="Select" Text="Seleccionar"></asp:ButtonColumn>
                                                <asp:BoundColumn DataField="P_USUARIO" HeaderText="P_USUARIO"></asp:BoundColumn>
                                                <asp:BoundColumn DataField="S_LOGIN" HeaderText="Usuario"></asp:BoundColumn>
                                                <asp:BoundColumn DataField="S_CLAVE_DISEÑO" HeaderText="S_CLAVE_DISEÑO">
                                                </asp:BoundColumn>
                                                <asp:BoundColumn DataField="S_CLAVE_ADMINISTRACION" 
                                                    HeaderText="S_CLAVE_ADMINISTRACION"></asp:BoundColumn>
                                                <asp:BoundColumn DataField="D_FECHA_VIGENCIA" HeaderText="D_FECHA_VIGENCIA">
                                                </asp:BoundColumn>
                                                <asp:BoundColumn DataField="S_EMAIL" HeaderText="S_EMAIL"></asp:BoundColumn>
                                                <asp:BoundColumn DataField="K_ESTABLECIMIENTO" HeaderText="K_ESTABLECIMIENTO">
                                                </asp:BoundColumn>
                                                <asp:BoundColumn DataField="K_TIPO_USUARIO" HeaderText="K_TIPO_USUARIO">
                                                </asp:BoundColumn>
                                            </Columns>
                                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" Font-Italic="False" 
                                                Font-Overline="False" Font-Size="9px" Font-Strikeout="False" 
                                                Font-Underline="False" ForeColor="White" />
                                            <EditItemStyle BackColor="#999999" />
                                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                            <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                            <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
                                        </anthem:DataGrid>
                                    </td>
                                </tr>
                            </table>
                            <br />
                        </anthem:Panel>
                    </td>
                </tr>
                <tr>
                    <td style="width: 103px">
                        &nbsp;</td>
                    <td align="left">
                        <table style="width: 28%">
                            <tr>
                                <td align="center">
                                        <anthem:ImageButton ID="img_grabar" runat="server" Height="36px" 
                                            ImageUrl="~/images/guardar1.jpg" Width="37px" 
                                        EnabledDuringCallBack="False" ImageUrlDuringCallBack="~/images/cargando.gif" 
                                            ToolTip="Grabar" />
                                    </td>
                                <td align="center">
                                        <anthem:ImageButton ID="img_limpiar" runat="server" Height="36px" 
                                            ImageUrl="~/images/limpiar1.jpg" Width="37px" 
                                            
                                        EnabledDuringCallBack="False" ImageUrlDuringCallBack="~/images/cargando.gif" 
                                            ToolTip="Limpiar" />
                                    </td>
                                <td>
                                        &nbsp;</td>
                            </tr>
                            <tr>
                                <td align="center">
                                        <b>Grabar <td align="center">
                                        <b>Limpiar-Nuevo</b></td>
                                <td>
                                        &nbsp;</td>
                            </tr>
                            </table>
                    </td>
                </tr>
                <tr>
                    <td style="width: 103px">
                        &nbsp;</td>
                    <td>
                        <anthem:Panel ID="pnl_mensaje" EnableCallBack =false runat ="server" 
                            Visible =false BackColor="#FFFF53" BorderStyle="Solid" BorderWidth="2px" 
                            Width="640px" >
                        
                                    <table style="width: 628px">
                                        <tr>
                                            <td>
                        <anthem:Label ID="lbl_mensaje" runat="server" ForeColor="#000066"></anthem:Label>
                                            </td>
                                            <td style="width: 44px">
                                        <anthem:ImageButton ID="img_continuar_accion" runat="server" Height="36px" 
                                            ImageUrl="~/images/Ok_Verde.jpg" Width="37px" 
                                                    ImageUrlDuringCallBack="~/images/cargando.gif" ToolTip="Continuar" />
                                            </td>
                                            <td style="width: 40px">
                                        <anthem:ImageButton ID="img_cancelar_accion" runat="server" Height="36px" 
                                            ImageUrl="~/images/Cancelar_rojo.png" Width="37px" 
                                                    ImageUrlDuringCallBack="~/images/cargando.gif" ToolTip="Cancelar" />
                                            </td>
                                            <td valign="top">
                                                &nbsp;</td>
                                        </tr>
                                    </table>
                                    
                        </anthem:Panel>
                            
                    </td>
                </tr>
                <tr>
                    <td style="width: 103px">
                        &nbsp;</td>
                    <td>
                        <table id="tbl_ingreso_datos" SkinID="TB_EST_USUARIO"  runat ="server" style="padding: 2px; margin: 1px; width: 100%" border="1" 
                            cellpadding="1" cellspacing="1">
                            <tr>
                                <td style="width: 154px">
                                        <anthem:Label ID="lbl_texto0" runat="server" Text="ID" 
                                        style="color: #000066"></anthem:Label>
                                    </td>
                                <td>
                                    <anthem:TextBox ID="p_usuario" runat="server" Enabled="False" 
                                        SkinID="p_usuario"></anthem:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 154px">
                                        <anthem:Label ID="lbl_texto1" runat="server" Text="Email" 
                                        style="color: #000066"></anthem:Label>
                                    </td>
                                <td>
                                    <anthem:TextBox ID="s_login" runat="server" Width="600px" SkinID="s_login"></anthem:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 154px">
                                        <anthem:Label ID="lbl_texto2" runat="server" Text="Código Diseño" 
                                        style="color: #000066"></anthem:Label>
                                    </td>
                                <td>
                                    <anthem:TextBox ID="s_clave_diseño" runat="server" Width="400px" 
                                        Enabled="False"></anthem:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 154px">
                                        <anthem:Label ID="lbl_texto3" runat="server" Text="Código Administración" 
                                        style="color: #000066"></anthem:Label>
                                    </td>
                                <td>
                                    <anthem:TextBox ID="s_clave_administracion" runat="server" Width="400px" 
                                        Enabled="False" SkinID="s_clave_administracion"></anthem:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 154px">
                                        <anthem:Label ID="lbl_texto4" runat="server" Text="Fecha Caduca" 
                                        style="color: #000066"></anthem:Label>
                                    </td>
                                <td>
                                   
                                    <anthem:TextBox ID="d_fecha_vigencia" runat="server" ReadOnly="True" 
                                        SkinID="d_fecha_vigencia">                                        
                                        </anthem:TextBox>
                                        <anthem:ImageButton  id="img_calendario" runat ="server" imageurl="../images/calendario1.jpg" 
                                        style="height: 31px; width: 29px" EnabledDuringCallBack="False" 
                                        ImageUrlDuringCallBack="~/images/cargando.gif" />
                                        
                                    <anthem:Calendar ID="Calendar1" 
                                        runat="server" BackColor="White" BorderColor="#3366CC" BorderWidth="1px" 
                                        CellPadding="1" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" 
                                        ForeColor="#003399" Height="172px" Width="194px" Visible="False" 
                                        EnabledDuringCallBack="False">
                                        <SelectedDayStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                                        <SelectorStyle BackColor="#99CCCC" ForeColor="#336666" />
                                        <WeekendDayStyle BackColor="#CCCCFF" />
                                        <TodayDayStyle BackColor="#99CCCC" ForeColor="White" />
                                        <OtherMonthDayStyle ForeColor="#999999" />
                                        <NextPrevStyle Font-Size="8pt" ForeColor="#CCCCFF" />
                                        <DayHeaderStyle BackColor="#99CCCC" ForeColor="#336666" Height="1px" />
                                        <TitleStyle BackColor="#003399" BorderColor="#3366CC" BorderWidth="1px" 
                                            Font-Bold="True" Font-Size="10pt" ForeColor="#CCCCFF" Height="25px" />
                                    </anthem:Calendar>
&nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 154px">
                                        <anthem:Label ID="lbl_texto7" runat="server" Text="Tipo Usuario" 
                                        style="color: #000066"></anthem:Label>
                                    </td>
                                <td>
                                    <anthem:DropDownList ID="k_tipo_usuario" runat="server" Height="20px" 
                                        Width="300px" SkinID="k_tipo_usuario">
                                        <asp:ListItem Selected="True" Value="1">Profesor</asp:ListItem>
                                        <asp:ListItem Value="2">Administrador</asp:ListItem>
                                    </anthem:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 154px">
                                        <anthem:Label ID="lbl_texto5" runat="server" Text="Email" 
                                        style="color: #000066"></anthem:Label>
                                    </td>
                                <td>
                                    <anthem:TextBox ID="s_email" runat="server" SkinID="s_email" Width="618px"></anthem:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 154px">
                                        <anthem:Label ID="lbl_texto6" runat="server" Text="Establecimiento" 
                                        style="color: #000066"></anthem:Label>
                                    </td>
                                <td>
                                    <anthem:DropDownList ID="k_establecimiento" runat="server" Height="20px" 
                                        Width="300px" SkinID="k_establecimiento">
                                        <asp:ListItem Selected="True" Value="1">Testing</asp:ListItem>
                                    </anthem:DropDownList>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr style="padding-top: 2px; margin-top: 2px">
                    <td style="width: 103px">
                        &nbsp;</td>
                    <td align="center">
                        &nbsp;</td>
                </tr>
                <tr style="padding-top: 2px; margin-top: 2px">
                    <td style="width: 103px">
                        &nbsp;</td>
                    <td align="center">
                        &nbsp;</td>
                </tr>
            </table>
        </td>
    </tr>
</table> 

<%--<script type ="text/javascript" >
	
		//function CargarCalendario(obj_id)
		//{
		    alert('hola');
			$(function() {$("#ctl03_d_fecha_vigencia" ).datepicker({altField: '#alternate', altFormat: 'DD, d MM, yy'});	});
		//}
</script>
--%>